// Learn cc.Class:
//  - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

cc.Class({
    extends: cc.Component,

    properties: {},

    //当发生碰撞时调用
    onCollisionEnter(other, self) {
        if (other.node.group == "bullet") {
            g_Monster.removeMonster(self.node);
        }
    },

    //当碰撞结束时调用
    onCollisionExit(other, self) {},

    // onLoad () {},

    start() {},

    // update (dt) {},
});
